package com.tanhua.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.model.dto.RecommendUserDto;
import com.tanhua.model.mongo.RecommendUser;
import com.tanhua.model.pojo.UserInfo;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface UserInfoApi {
    public void save(UserInfo userInfor);
    public void updateById(UserInfo userInfor);
    public UserInfo selectById(Long id);

    Page<UserInfo> page(Page<UserInfo> page, Long userId);
    public Page<UserInfo> findUsersByIds(List<RecommendUser> recommendUserList, RecommendUserDto recommendUserDto);

    List<UserInfo> findUserinfoByIds(List<Long> ids);


    UserInfo findByid(Long userId);

    PageResult<UserInfo> selectPage(List<Long> friends, Integer page, Integer pageSize, String keyword);

    List<UserInfo> findByUserIds(List<Long> userIds, String gender);

    //分页查询用户详情
    Page<UserInfo> findByPage(Integer page, Integer pagesize);

}
